package com.yingsheng.bi.hks.feign.client;

import com.yingsheng.bi.hks.basic.FeignConst;
import com.yingsheng.bi.hks.dto.HksTransReq;
import com.yingsheng.bi.hks.dto.HksTransRes;
import com.yingsheng.bi.hks.dto.user.BaseInfoModReq;
import com.yingsheng.bi.hks.dto.user.BaseInfoModRes;
import com.yingsheng.bi.hks.dto.user.UserLoginRes;
import com.yingsheng.bi.hks.dto.user.WxAuthLoginReq;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@Api(tags = "用户模块")
@FeignClient(contextId = FeignConst.HKS_USER, name = FeignConst.SERVICE_NAME)
public interface UserFeignClient {

    @ApiOperation(httpMethod = "POST", value = "微信授权登录")
    @RequestMapping(value = "/user/wxAuthLogin")
    UserLoginRes process(@RequestBody WxAuthLoginReq req);

    @ApiOperation(httpMethod = "POST", value = "退出登录")
    @RequestMapping(value = "/user/logout")
    HksTransRes process(@RequestBody HksTransReq req);

    @ApiOperation(httpMethod = "POST", value = "基础信息修改")
    @RequestMapping(value = "/user/baseInfoMod")
    BaseInfoModRes process(@RequestBody BaseInfoModReq req);
}
